package fr.cdj.thebox.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class DeleteFilesSuccessEvent extends GwtEvent<DeleteFilesSuccessHandler> {

	private static Type<DeleteFilesSuccessHandler> type;

	public DeleteFilesSuccessEvent() {
	}
	
	public static Type<DeleteFilesSuccessHandler> getType() {
		if(type == null) {
			type = new Type<DeleteFilesSuccessHandler>();
		}
		return type;
	}
	
	@Override
	public Type<DeleteFilesSuccessHandler> getAssociatedType() {
		return getType();
	}

	@Override
	protected void dispatch(DeleteFilesSuccessHandler handler) {
		handler.onDeleteFilesSuccess(this);
	}
	
}
